import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import store from './store'
import ElementPlus from 'element-plus'
import router from './router'
import { createPinia } from 'pinia'
import i18n from '@/lang/index';
import 'element-plus/dist/index.css'
import '@/permission';
const app = createApp(App)

// ⚡ 先创建 Pinia 实例
const pinia = createPinia()


app.use(pinia) // ⚡ 传入实例，而不是函数
app.use(router)
app.use(store)
app.use(i18n)
app.use(ElementPlus)
app.mount('#app')
